package cn.itcast.zt.exceptions;

import lombok.Getter;

/**
 * created by zhangtian on 2018/7/9
 */
@Getter
public class CheckException extends RuntimeException {
    static final long serialVersionUID = 1L;

    private String fieldName ;// 出错字段的名字
    private String fieldValue ;// 出错值

    public CheckException() {
        super();
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }

    protected CheckException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public CheckException(String fieldName, String fieldValue){
        super();
        this.fieldName = fieldName ;
        this.fieldValue = fieldValue ;
    }
}
